/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.longview.io.modules.grassinfo.entity;

import org.hibernate.validator.constraints.Length;
import com.longview.io.modules.userinfo.entity.UserInfo;

import com.longview.io.common.persistence.DataEntity;
import com.longview.io.common.utils.excel.annotation.ExcelField;

/**
 * 草场信息Entity
 * @author zf
 * @version 2018-04-23
 */
public class UserGrasslandInfo extends DataEntity<UserGrasslandInfo> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 草场名称
	private String area;		// 手输面积
	private String clArea;		// 测量面积
	private UserInfo userinfo;		// 用户
	private String grassImg;		// 草场图片
	private String coordinates;		// 草场经纬度(多个点)json格式
	private String remark;		// 备注
	private String lon;
	private String lat;
	
	@ExcelField(title="坐标", align=2, sort=25)
	public String getLon() {
		return lon;
	}

	public void setLon(String lon) {
		this.lon = lon;
	}
	@ExcelField(title="坐标", align=2, sort=25)
	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}


	public UserGrasslandInfo() {
		super();
	}

	public UserGrasslandInfo(String id){
		super(id);
	}

	@Length(min=0, max=60, message="草场名称长度必须介于 0 和 60 之间")
	@ExcelField(title="姓名", align=2, sort=25)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@ExcelField(title="手输面积", align=2, sort=25)
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	@ExcelField(title="测量面积", align=2, sort=25)
	public String getClArea() {
		return clArea;
	}

	public void setClArea(String clArea) {
		this.clArea = clArea;
	}
	 
	
	public UserInfo getUserinfo() {
		return userinfo;
	}

	public void setUserinfo(UserInfo userinfo) {
		this.userinfo = userinfo;
	}
	
	@Length(min=0, max=200, message="草场图片长度必须介于 0 和 200 之间")
	@ExcelField(title="草场图片", align=2, sort=25)
	public String getGrassImg() {
		return grassImg;
	}

	public void setGrassImg(String grassImg) {
		this.grassImg = grassImg;
	}
	
	@Length(min=0, max=500, message="草场经纬度(多个点)json格式长度必须介于 0 和 500 之间") 
	public String getCoordinates() {
		return coordinates;
	}

	public void setCoordinates(String coordinates) {
		this.coordinates = coordinates;
	}
	
	@Length(min=0, max=100, message="备注长度必须介于 0 和 100 之间")
	@ExcelField(title="备注", align=2, sort=25)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}